﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customlist.aspx.cs" Inherits="top_crm_customlist" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>特特CRM_客户营销</title>
    <link href="../css/common.css" rel="stylesheet" />
    <style>
        td{font-size:12px;}
        a{color:Blue; text-decoration:none;}
    </style>
</head>
<body style="padding:0px; margin:0px;">
    <form id="form1" runat="server">
    <div>
        <div class="navigation" style="height:600px;">

  <div class="crumbs"><a href="javascript:;" class="nolink">特特CRM_客户关系营销</a> 客户列表 </div>
  
    <div id="main-content">

<div style="border:solid 1px #CCE2FF; padding:4px; background-color:#E8F2FF; margin:0 3px 5px 0px; color:blue; font-weight:bold; width:700px">
    系统默认自动获取您淘宝CRM中的会员数据但是只有最近3个月有交易过的会员才有手机号，如需3个月以前会员手机号数据，可参考<a style="color:Red; font-weight:bold;" href='http://bangpai.taobao.com/group/thread/1091516-277392666.htm' target="_blank">教程</a>导入哦~
    <br /><span style="color:red">该分组下共有<%=total %>名会员</span>
</div>

    请输入买家昵称：<asp:TextBox ID="search" Width="90px" runat="server"></asp:TextBox>
    <select name="groupguid">
        <option value="">所有会员</option>
        <optgroup label="自定义会员组">
            <%=groupstr %>
        </optgroup>
        <optgroup label="按用户组区别">
            <option value="1">普通会员</option>
            <option value="2">高级会员</option>
            <option value="3">VIP会员</option>
            <option value="4">至尊VIP会员</option>
        </optgroup>
    </select>
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="搜索" />
    <input type=button value="订单CSV批量导入" onclick="window.location.href='initcustombycsv.aspx'" />
        <hr />

        <table width="740" cellpadding="0" cellspacing="0">
        <tr>
                <td width="100"><b>客户昵称</b></td>
                <td width="40"><b>省</b></td>
                <td width="30"><b>性别</b></td>
                <td width="60"><b>等级</b></td>
                <td width="75"><b>分组</b></td>
                <td width="50"><b>交易量</b></td>
                <td width="50"><b>交易额</b></td>
                <td width="55"><b>最后交易</b></td>
                <td width="60"><b>操作</b></td>
            </tr>
        <asp:Repeater ID="rptArticle" runat="server">
            <ItemTemplate>
            <tr>
                <td height="35"><%#Eval("buynick") %> <img src='level/<%#Eval("buyerlevel") %>.gif' valign="middle" /></td>
                <td><%#Eval("sheng")%></td>
                <td><%#getsex(Eval("sex").ToString())%></td>
                <td><%#getgrade(Eval("grade").ToString())%></td>
                <td><%#Eval("groupguid").ToString()%></td>
                <td><%#Eval("tradecount")%></td>
                <td><%#Eval("tradeamount")%></td>
                <td><%#DateTime.Parse(Eval("lastorderdate").ToString()).ToString("yyyy-MM-dd")%></td>
                <td> <a href='custommodify.aspx?id=<%#encode(Eval("buynick").ToString())%>' target="_blank">编辑</a> </td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>

    <div>
        <asp:Label ID="lbPage" runat="server"></asp:Label>
    </div>

    </div>
</div>
    </div>
    </form>
</body>
</html>
